import { NextConfig } from "next";
import path from "path";
const nextConfig: NextConfig = {
    reactStrictMode: true,
    images: {
        domains: ["daulat-nft-marketplace.infura-ipfs.io"],
        formats: ["image/webp"]
    },
    // useFileSystemPublicRoutes:false,
    // appDir: './pages',
    // 确保 Next.js 能正确解析pnpm的依赖结构
    experimental: {
        externalDir: true,
    },

    // webpack: (config) => {
    //     config.resolve.alias = {
    //         "@components": path.join(__dirname, "./components")
    //     }
    //     return config;
    // }
};

export default nextConfig;